package com.bdqn.ch06.service;

import com.bdqn.ch06.entity.User;
import com.bdqn.ch06.repository.UserRepository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImp implements UserService{
    @Resource
    private UserRepository userRepository;

    @Override
    public User login(String usrName, String usrPassword) {
        return null;
    }

    @Override
    public User addUser(User user) {
        return null;
    }

    @Override
    public void deleteUser(Long usrId) { }

    @Override
    public User updateUser(User user) {
        return null;
    }

    @Override
    public User getUser(Long usrId) {
        return userRepository.getOne(usrId);
    }

    @Override
    public List<User> findAllUsers() {
        return null;
    }
}
